import pic2pix
import cv2
import os
import sys

if __name__ == '__main__':
    name = input()

    p2p = pic2pix.Pic2Pix((8, 8), "../"+name)

    p2p.bin_Pic()
    p2p.pixel()
    p2p.pix_code()
    p2p.pix_code_1()

    #cv2.waitKey()
    #cv2.destroyAllWindows()